<?php
/**
 * 学生界面-文体活动
 */

use yii\grid\GridView;
use app\models\LiterarySearchForPerson;

/* @var $this yii\web\View */
/* @var $searchModel app\models\LiterarySearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = '文体活动';
$this->params['breadcrumbs'][] = $this->title;
?>

<?php    
    $searchModel = new LiterarySearchForPerson($id);
    $dataProvider = $searchModel->search(\Yii::$app->request->queryParams); 
 ?>

<div class="literary-model-index">
    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'stu_id',
            'name',
            'year',
            'semester'=>[
             		'attribute'=>'semester',
             		'filter'=>['1'=>'1','2'=>'2'],],
            'date',
            'activity',
            'project',
            'grade',
        ],
    ]); ?>
</div>
